summaryrefslogtreecommitdiff
path: root/openjdkjvmti/jvmti_allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'openjdkjvmti/jvmti_allocator.h')
-rw-r--r--openjdkjvmti/jvmti_allocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/openjdkjvmti/jvmti_allocator.h b/openjdkjvmti/jvmti_allocator.h
index 4adf769f12..618a661c5a 100644
--- a/openjdkjvmti/jvmti_allocator.h
+++ b/openjdkjvmti/jvmti_allocator.h
@@ -110,7 +110,7 @@ class JvmtiAllocator {
pointer address(reference x) const { return &x; }
const_pointer address(const_reference x) const { return &x; }
- pointer allocate(size_type n, JvmtiAllocator<void>::pointer hint ATTRIBUTE_UNUSED = nullptr) {
+ pointer allocate(size_type n, [[maybe_unused]] JvmtiAllocator<void>::pointer hint = nullptr) {
DCHECK_LE(n, max_size());
if (env_ == nullptr) {
T* result = reinterpret_cast<T*>(AllocUtil::AllocateImpl(n * sizeof(T)));
@@ -123,7 +123,7 @@ class JvmtiAllocator {
return reinterpret_cast<T*>(result);
}
}
- void deallocate(pointer p, size_type n ATTRIBUTE_UNUSED) {
+ void deallocate(pointer p, [[maybe_unused]] size_type n) {
if (env_ == nullptr) {
AllocUtil::DeallocateImpl(reinterpret_cast<unsigned char*>(p));
} else {