Skip to content

Commit

Permalink
Merge pull request #3328 from babsingh/osx_jdk8_no_arch
Browse files Browse the repository at this point in the history
JDK8 OSX <arch> (=amd64) not defined
  • Loading branch information
DanHeidinga authored Oct 18, 2018
2 parents 0d6badb + ff8036a commit e448d21
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions runtime/j9vm/jvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,10 +1096,15 @@ preloadLibraries(void)
jrebinBuffer = jvmBufferCat(NULL, jvmBufferData(j9binBuffer));
}
j9libBuffer = jvmBufferCat(NULL, jvmBufferData(jrebinBuffer));
#if J9VM_JAVA9_BUILD < 150
#if !defined(OSX)
/* <arch> directory doesn't exist on OSX so j9libBuffer shouldn't
* be truncated on OSX for removing <arch>.
*/
#if (J9VM_JAVA9_BUILD < 150)
/* Remove <arch> */
truncatePath(jvmBufferData(j9libBuffer));
#endif /* J9VM_JAVA9_BUILD < 150 */
#endif /* (J9VM_JAVA9_BUILD < 150) */
#endif /* !defined(OSX) */
j9libvmBuffer = jvmBufferCat(NULL, jvmBufferData(j9binBuffer));
j9Buffer = jvmBufferCat(NULL, jvmBufferData(jrebinBuffer));
truncatePath(jvmBufferData(j9Buffer));
Expand Down

0 comments on commit e448d21

Please sign in to comment.