Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hotspot/cpu/x86/vm_version_x86.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,9 @@ class VM_Version : public Abstract_VM_Version {
friend class JVMCIVMStructs;

private:
uint64_t _features_bitmap[(MAX_CPU_FEATURES >> 6) + 1];
uint64_t _features_bitmap[(MAX_CPU_FEATURES / BitsPerLong) + 1];

STATIC_ASSERT(sizeof(_features_bitmap) * BitsPerByte > MAX_CPU_FEATURES);
STATIC_ASSERT(sizeof(_features_bitmap) * BitsPerByte >= MAX_CPU_FEATURES);

// Number of 8-byte elements in _bitmap.
constexpr static int features_bitmap_element_count() {
Expand Down