8308407: libjvm library not reproducibly comparable between vendors

Co-authored-by: Simon Tooke <stooke@openjdk.org>
Reviewed-by: andrew, dholmes
This commit is contained in:
Andrew Leonard 2023-05-22 12:23:45 +00:00
parent 18e2446420
commit dc30e68651

View File

@ -116,13 +116,17 @@ const char* Abstract_VM_Version::vm_name() {
return VMNAME;
}
#ifndef VENDOR_PADDING
# define VENDOR_PADDING 64
#endif
#ifndef VENDOR
# define VENDOR "Oracle Corporation"
#endif
static const char vm_vendor_string[sizeof(VENDOR) < VENDOR_PADDING ? VENDOR_PADDING : sizeof(VENDOR)] = VENDOR;
const char* Abstract_VM_Version::vm_vendor() {
#ifdef VENDOR
return VENDOR;
#else
return "Oracle Corporation";
#endif
return vm_vendor_string;
}