Mercurial > hg > truffle
comparison src/share/vm/services/lowMemoryDetector.cpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | bf8517f4e4d0 |
children | 203f64878aab |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
293 | 293 |
294 void SensorInfo::trigger(int count, TRAPS) { | 294 void SensorInfo::trigger(int count, TRAPS) { |
295 assert(count <= _pending_trigger_count, "just checking"); | 295 assert(count <= _pending_trigger_count, "just checking"); |
296 | 296 |
297 if (_sensor_obj != NULL) { | 297 if (_sensor_obj != NULL) { |
298 klassOop k = Management::sun_management_Sensor_klass(CHECK); | 298 Klass* k = Management::sun_management_Sensor_klass(CHECK); |
299 instanceKlassHandle sensorKlass (THREAD, k); | 299 instanceKlassHandle sensorKlass (THREAD, k); |
300 Handle sensor_h(THREAD, _sensor_obj); | 300 Handle sensor_h(THREAD, _sensor_obj); |
301 Handle usage_h = MemoryService::create_MemoryUsage_obj(_usage, CHECK); | 301 Handle usage_h = MemoryService::create_MemoryUsage_obj(_usage, CHECK); |
302 | 302 |
303 JavaValue result(T_VOID); | 303 JavaValue result(T_VOID); |
322 } | 322 } |
323 } | 323 } |
324 | 324 |
325 void SensorInfo::clear(int count, TRAPS) { | 325 void SensorInfo::clear(int count, TRAPS) { |
326 if (_sensor_obj != NULL) { | 326 if (_sensor_obj != NULL) { |
327 klassOop k = Management::sun_management_Sensor_klass(CHECK); | 327 Klass* k = Management::sun_management_Sensor_klass(CHECK); |
328 instanceKlassHandle sensorKlass (THREAD, k); | 328 instanceKlassHandle sensorKlass (THREAD, k); |
329 Handle sensor(THREAD, _sensor_obj); | 329 Handle sensor(THREAD, _sensor_obj); |
330 | 330 |
331 JavaValue result(T_VOID); | 331 JavaValue result(T_VOID); |
332 JavaCallArguments args(sensor); | 332 JavaCallArguments args(sensor); |