Mercurial > hg > truffle
comparison test/testlibrary/whitebox/sun/hotspot/WhiteBox.java @ 20361:ac12996df59b
8044140: Create NMT (Native Memory Tracking) tests for NMT2
Summary: Create new/modify existing tests for NMT2, which is an internal redesign to address scalability issues in the first implementation.
Reviewed-by: ctornqvi, zgu
Contributed-by: George Triantafillou <george.triantafillou@oracle.com>
author | zgu |
---|---|
date | Wed, 27 Aug 2014 08:35:03 -0400 |
parents | 833b0f92429a |
children | f433f37645e5 |
comparison
equal
deleted
inserted
replaced
20360:833b0f92429a | 20361:ac12996df59b |
---|---|
130 public int getCompileQueuesSize() { | 130 public int getCompileQueuesSize() { |
131 return getCompileQueueSize(-1 /*any*/); | 131 return getCompileQueueSize(-1 /*any*/); |
132 } | 132 } |
133 public native int getCompileQueueSize(int compLevel); | 133 public native int getCompileQueueSize(int compLevel); |
134 public native boolean testSetForceInlineMethod(Executable method, boolean value); | 134 public native boolean testSetForceInlineMethod(Executable method, boolean value); |
135 public boolean enqueueMethodForCompilation(Executable method, int compLevel) { | 135 public boolean enqueueMethodForCompilation(Executable method, int compLevel) { |
136 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/); | 136 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/); |
137 } | 137 } |
138 public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci); | 138 public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci); |
139 public native void clearMethodState(Executable method); | 139 public native void clearMethodState(Executable method); |
140 public native int getMethodEntryBci(Executable method); | 140 public native int getMethodEntryBci(Executable method); |
143 // Intered strings | 143 // Intered strings |
144 public native boolean isInStringTable(String str); | 144 public native boolean isInStringTable(String str); |
145 | 145 |
146 // Memory | 146 // Memory |
147 public native void readReservedMemory(); | 147 public native void readReservedMemory(); |
148 public native long allocateMetaspace(ClassLoader classLoader, long size); | |
149 public native void freeMetaspace(ClassLoader classLoader, long addr, long size); | |
150 | 148 |
151 // force Young GC | 149 // force Young GC |
152 public native void youngGC(); | 150 public native void youngGC(); |
153 | 151 |
154 // force Full GC | 152 // force Full GC |
160 public native void readFromNoaccessArea(); | 158 public native void readFromNoaccessArea(); |
161 | 159 |
162 // CPU features | 160 // CPU features |
163 public native String getCPUFeatures(); | 161 public native String getCPUFeatures(); |
164 | 162 |
165 // VM flags | |
166 public native void setBooleanVMFlag(String name, boolean value); | |
167 public native void setIntxVMFlag(String name, long value); | |
168 public native void setUintxVMFlag(String name, long value); | |
169 public native void setUint64VMFlag(String name, long value); | |
170 public native void setStringVMFlag(String name, String value); | |
171 public native void setDoubleVMFlag(String name, double value); | |
172 public native Boolean getBooleanVMFlag(String name); | |
173 public native Long getIntxVMFlag(String name); | |
174 public native Long getUintxVMFlag(String name); | |
175 public native Long getUint64VMFlag(String name); | |
176 public native String getStringVMFlag(String name); | |
177 public native Double getDoubleVMFlag(String name); | |
178 } | 163 } |