|
1 | 1 | /*
|
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. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
31 | 31 | #include "runtime/frame.hpp"
|
32 | 32 | #include "runtime/mutexLocker.hpp"
|
33 | 33 | #include "runtime/stubCodeGenerator.hpp"
|
| 34 | +#include "runtime/threadWXSetters.inline.hpp" |
34 | 35 | #include "utilities/macros.hpp"
|
35 | 36 |
|
36 | 37 | // StubRoutines provides entry points to assembly routines used by
|
@@ -453,11 +454,13 @@ class StubRoutines: AllStatic {
|
453 | 454 |
|
454 | 455 | static jshort f2hf(jfloat x) {
|
455 | 456 | 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 |
456 | 458 | typedef jshort (*f2hf_stub_t)(jfloat x);
|
457 | 459 | return ((f2hf_stub_t)_f2hf)(x);
|
458 | 460 | }
|
459 | 461 | static jfloat hf2f(jshort x) {
|
460 | 462 | 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 |
461 | 464 | typedef jfloat (*hf2f_stub_t)(jshort x);
|
462 | 465 | return ((hf2f_stub_t)_hf2f)(x);
|
463 | 466 | }
|
|
0 commit comments