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:
parent
18e2446420
commit
dc30e68651
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user