Skip to content
Snippets Groups Projects
Commit 45438c94 authored by Yang Ni's avatar Yang Ni
Browse files

Removed close guards for Element and Type objects

Bug: 28053769

These objects are tiny and unlikely to cause memory issues.

In addition, llvm-rs-cc auto-generated code contains such objects, which are
not visibible to developers and impossible to manually destroy, leaving
distracting warnings in Strict Mode.

Test: RsTest with StrictMode on and CTS tests

Change-Id: Iec68cca4f1259124b9f503a230c1a28b97ede1f3
parent 3e6c189c
No related branches found
No related tags found
No related merge requests found
......@@ -1071,7 +1071,6 @@ public class Element extends BaseObj {
mSize += mElements[ct].mSize * mArraySizes[ct];
}
updateVisibleSubElements();
guard.open("destroy");
}
Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
......@@ -1091,7 +1090,6 @@ public class Element extends BaseObj {
mKind = dk;
mNormalized = norm;
mVectorSize = size;
guard.open("destroy");
}
Element(long id, RenderScript rs) {
......
......@@ -227,7 +227,6 @@ public class Type extends BaseObj {
Type(long id, RenderScript rs) {
super(id, rs);
guard.open("destroy");
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment