176 if (adr == 0) {
177 throw new IllegalArgumentException("adr argument should not be null");
178 }
179 return g1BelongsToFreeRegion0(adr);
180 }
181
182 public native long g1NumMaxRegions();
183 public native long g1NumFreeRegions();
184 public native int g1RegionSize();
185 public native long dramReservedStart();
186 public native long dramReservedEnd();
187 public native long nvdimmReservedStart();
188 public native long nvdimmReservedEnd();
189 public native MemoryUsage g1AuxiliaryMemoryUsage();
190 private native Object[] parseCommandLine0(String commandline, char delim, DiagnosticCommand[] args);
191 public Object[] parseCommandLine(String commandline, char delim, DiagnosticCommand[] args) {
192 Objects.requireNonNull(args);
193 return parseCommandLine0(commandline, delim, args);
194 }
195
196 // Parallel GC
197 public native long psVirtualSpaceAlignment();
198 public native long psHeapGenerationAlignment();
199
200 /**
201 * Enumerates old regions with liveness less than specified and produces some statistics
202 * @param liveness percent of region's liveness (live_objects / total_region_size * 100).
203 * @return long[3] array where long[0] - total count of old regions
204 * long[1] - total memory of old regions
205 * long[2] - lowest estimation of total memory of old regions to be freed (non-full
206 * regions are not included)
207 */
208 public native long[] g1GetMixedGCInfo(int liveness);
209
210 // NMT
211 public native long NMTMalloc(long size);
212 public native void NMTFree(long mem);
213 public native long NMTReserveMemory(long size);
214 public native long NMTAttemptReserveMemoryAt(long addr, long size);
215 public native void NMTCommitMemory(long addr, long size);
|
176 if (adr == 0) {
177 throw new IllegalArgumentException("adr argument should not be null");
178 }
179 return g1BelongsToFreeRegion0(adr);
180 }
181
182 public native long g1NumMaxRegions();
183 public native long g1NumFreeRegions();
184 public native int g1RegionSize();
185 public native long dramReservedStart();
186 public native long dramReservedEnd();
187 public native long nvdimmReservedStart();
188 public native long nvdimmReservedEnd();
189 public native MemoryUsage g1AuxiliaryMemoryUsage();
190 private native Object[] parseCommandLine0(String commandline, char delim, DiagnosticCommand[] args);
191 public Object[] parseCommandLine(String commandline, char delim, DiagnosticCommand[] args) {
192 Objects.requireNonNull(args);
193 return parseCommandLine0(commandline, delim, args);
194 }
195
196 public native int g1ActiveMemoryNodeCount();
197 public native int[] g1MemoryNodeIds();
198
199 // Parallel GC
200 public native long psVirtualSpaceAlignment();
201 public native long psHeapGenerationAlignment();
202
203 /**
204 * Enumerates old regions with liveness less than specified and produces some statistics
205 * @param liveness percent of region's liveness (live_objects / total_region_size * 100).
206 * @return long[3] array where long[0] - total count of old regions
207 * long[1] - total memory of old regions
208 * long[2] - lowest estimation of total memory of old regions to be freed (non-full
209 * regions are not included)
210 */
211 public native long[] g1GetMixedGCInfo(int liveness);
212
213 // NMT
214 public native long NMTMalloc(long size);
215 public native void NMTFree(long mem);
216 public native long NMTReserveMemory(long size);
217 public native long NMTAttemptReserveMemoryAt(long addr, long size);
218 public native void NMTCommitMemory(long addr, long size);
|