Skip to content

Commit 4368437

Browse files
Bhavana KilambiVladimir Kozlov
Bhavana Kilambi
authored and
Vladimir Kozlov
committedFeb 9, 2024
8325264: two compiler/intrinsics/float16 tests fail after JDK-8324724
Reviewed-by: thartmann, dfenacci, kvn
1 parent 4a3a38d commit 4368437

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/hotspot/share/runtime/stubRoutines.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -31,6 +31,7 @@
3131
#include "runtime/frame.hpp"
3232
#include "runtime/mutexLocker.hpp"
3333
#include "runtime/stubCodeGenerator.hpp"
34+
#include "runtime/threadWXSetters.inline.hpp"
3435
#include "utilities/macros.hpp"
3536

3637
// StubRoutines provides entry points to assembly routines used by
@@ -453,11 +454,13 @@ class StubRoutines: AllStatic {
453454

454455
static jshort f2hf(jfloat x) {
455456
assert(_f2hf != nullptr, "stub is not implemented on this platform");
457+
MACOS_AARCH64_ONLY(ThreadWXEnable wx(WXExec, Thread::current());) // About to call into code cache
456458
typedef jshort (*f2hf_stub_t)(jfloat x);
457459
return ((f2hf_stub_t)_f2hf)(x);
458460
}
459461
static jfloat hf2f(jshort x) {
460462
assert(_hf2f != nullptr, "stub is not implemented on this platform");
463+
MACOS_AARCH64_ONLY(ThreadWXEnable wx(WXExec, Thread::current());) // About to call into code cache
461464
typedef jfloat (*hf2f_stub_t)(jshort x);
462465
return ((hf2f_stub_t)_hf2f)(x);
463466
}

‎test/hotspot/jtreg/ProblemList.txt

-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ compiler/jvmci/TestUncaughtErrorInCompileMethod.java 8309073 generic-all
7676
compiler/floatingpoint/TestSubnormalFloat.java 8317810 generic-i586
7777
compiler/floatingpoint/TestSubnormalDouble.java 8317810 generic-i586
7878

79-
compiler/intrinsics/float16/TestConstFloat16ToFloat.java 8325264 macosx-aarch64
80-
compiler/intrinsics/float16/Binary16Conversion.java 8325264 macosx-aarch64
81-
8279
#############################################################################
8380

8481
# :hotspot_gc

0 commit comments

Comments
 (0)
Please sign in to comment.