mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
7185614: NMT ON: "check by caller" assertion failed on nsk ThreadMXBean test
7187429: NMT ON: Merge failure should cause NMT to shutdown Fixed NMT assertion failures Reviewed-by: acorn, kvn
This commit is contained in:
parent
5a456b0991
commit
a13f3bdad8
4 changed files with 11 additions and 11 deletions
|
@ -184,7 +184,6 @@ class MemTracker : AllStatic {
|
|||
// record a 'malloc' call
|
||||
static inline void record_malloc(address addr, size_t size, MEMFLAGS flags,
|
||||
address pc = 0, Thread* thread = NULL) {
|
||||
assert(is_on(), "check by caller");
|
||||
if (NMT_CAN_TRACK(flags)) {
|
||||
create_memory_record(addr, (flags|MemPointerRecord::malloc_tag()), size, pc, thread);
|
||||
}
|
||||
|
@ -285,7 +284,6 @@ class MemTracker : AllStatic {
|
|||
|
||||
// retrieve global snapshot
|
||||
static MemSnapshot* get_snapshot() {
|
||||
assert(is_on(), "native memory tracking is off");
|
||||
if (shutdown_in_progress()) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue