Skip to content

Commit

Permalink
Adapt JDK-8339148
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa committed Sep 4, 2024
1 parent 65bf2d7 commit 30f32d2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/hotspot/share/prims/whitebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,6 @@ class VM_WhiteBoxOperation : public VM_Operation {
bool allow_nested_vm_operations() const { return true; }
};

#ifdef LINUX
class Whitebox_Linux : public os::Linux {
public:
static int host_cpus() { return os::Linux::active_processor_count(); }
};
#endif


WB_ENTRY(jlong, WB_GetObjectAddress(JNIEnv* env, jobject o, jobject obj))
return (jlong)(void*)JNIHandles::resolve(obj);
Expand Down Expand Up @@ -2507,7 +2500,7 @@ WB_END
// Available cpus of the host machine, Linux only.
// Used in container testing.
WB_ENTRY(jint, WB_HostCPUs(JNIEnv* env, jobject o))
LINUX_ONLY(return Whitebox_Linux::host_cpus();)
LINUX_ONLY(return os::Linux::active_processor_count();)
return -1; // Not used/implemented on other platforms
WB_END

Expand Down

0 comments on commit 30f32d2

Please sign in to comment.