mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8324838: test_nmt_locationprinting.cpp broken in the gcc windows build
Backport-of: a2229b18bf
This commit is contained in:
committed by
Sergey Shelomentsev
parent
21cdc0c3ec
commit
a27abe87f4
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2023, Red Hat, Inc. and/or its affiliates.
|
||||
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@@ -67,6 +67,7 @@ static void test_for_live_c_heap_block(size_t sz, ssize_t offset) {
|
||||
FREE_C_HEAP_ARRAY(char, c);
|
||||
}
|
||||
|
||||
#ifdef LINUX
|
||||
static void test_for_dead_c_heap_block(size_t sz, ssize_t offset) {
|
||||
if (!MemTracker::enabled()) {
|
||||
return;
|
||||
@@ -92,6 +93,7 @@ static void test_for_dead_c_heap_block(size_t sz, ssize_t offset) {
|
||||
hdr->revive();
|
||||
FREE_C_HEAP_ARRAY(char, c);
|
||||
}
|
||||
#endif
|
||||
|
||||
TEST_VM(NMT, location_printing_cheap_live_1) { test_for_live_c_heap_block(2 * K, 0); } // start of payload
|
||||
TEST_VM(NMT, location_printing_cheap_live_2) { test_for_live_c_heap_block(2 * K, -7); } // into header
|
||||
|
||||
Reference in New Issue
Block a user