{"action":"created","issue":{"url":"https://api.github.com/repos/real-logic/Aeron/issues/109","labels_url":"https://api.github.com/repos/real-logic/Aeron/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/real-logic/Aeron/issues/109/comments","events_url":"https://api.github.com/repos/real-logic/Aeron/issues/109/events","html_url":"https://github.com/real-logic/Aeron/issues/109","id":72519310,"number":109,"title":"MediaDriver.launch() fails on Oracle JDK 1.8.0_45-b14 on Linux","user":{"login":"flxalexo","id":8263658,"avatar_url":"https://avatars.githubusercontent.com/u/8263658?v=3","gravatar_id":"","url":"https://api.github.com/users/flxalexo","html_url":"https://github.com/flxalexo","followers_url":"https://api.github.com/users/flxalexo/followers","following_url":"https://api.github.com/users/flxalexo/following{/other_user}","gists_url":"https://api.github.com/users/flxalexo/gists{/gist_id}","starred_url":"https://api.github.com/users/flxalexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxalexo/subscriptions","organizations_url":"https://api.github.com/users/flxalexo/orgs","repos_url":"https://api.github.com/users/flxalexo/repos","events_url":"https://api.github.com/users/flxalexo/events{/privacy}","received_events_url":"https://api.github.com/users/flxalexo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-01T20:45:22Z","updated_at":"2015-05-03T17:32:50Z","closed_at":"2015-05-01T21:25:58Z","body":"In the recent update to Agrona 0.3.1 in ManyToOneRingBuffer there is a new check for buffer.verifyAlignment() that is invoked as part of MediaDriver.launch().\r\n\r\nThis works in some JDK/OS combinations, but not for the following:\r\n```\r\nJava version: 1.8.0_45, vendor: Oracle Corporation\r\nJava(TM) SE Runtime Environment (build 1.8.0_45-b14)\r\nJava HotSpot(TM) Server VM (build 25.45-b02, mixed mode)\r\nOS name: \"linux\", version: \"3.13.0-37-generic\", arch: \"i386\", family: \"unix\"\r\n```\r\n\r\nWhere we see the following error:\r\n```\r\nException in thread \"main\" java.lang.IllegalStateException: AtomicBuffer is not correctly aligned: addressOffset=12 in not divisible by 8\r\n\tat uk.co.real_logic.agrona.concurrent.UnsafeBuffer.verifyAlignment(UnsafeBuffer.java:294)\r\n\tat uk.co.real_logic.agrona.concurrent.ringbuffer.ManyToOneRingBuffer.<init>(ManyToOneRingBuffer.java:65)\r\n\tat uk.co.real_logic.aeron.common.event.EventLogger.<init>(EventLogger.java:64)\r\n\tat uk.co.real_logic.aeron.driver.MediaDriver$Context.conclude(MediaDriver.java:347)\r\n\tat uk.co.real_logic.aeron.driver.MediaDriver.<init>(MediaDriver.java:109)\r\n\tat uk.co.real_logic.aeron.driver.MediaDriver.launch(MediaDriver.java:192)\r\n\tat uk.co.real_logic.aeron.driver.MediaDriver.launch(MediaDriver.java:181)\r\n```\r\n\r\nThe reason for this is that UnsafeBuffer.ARRAY_BASE_OFFSET is 12, but is expected to be divisible by 8.\r\n\r\nIs this an issue with Aeron or Agrona, or is there something wrong with my JDK/environment (the issue does not come up on Windows/Oracle JDK)?\r\n"},"comment":{"url":"https://api.github.com/repos/real-logic/Aeron/issues/comments/98512864","html_url":"https://github.com/real-logic/Aeron/issues/109#issuecomment-98512864","issue_url":"https://api.github.com/repos/real-logic/Aeron/issues/109","id":98512864,"user":{"login":"flxalexo","id":8263658,"avatar_url":"https://avatars.githubusercontent.com/u/8263658?v=3","gravatar_id":"","url":"https://api.github.com/users/flxalexo","html_url":"https://github.com/flxalexo","followers_url":"https://api.github.com/users/flxalexo/followers","following_url":"https://api.github.com/users/flxalexo/following{/other_user}","gists_url":"https://api.github.com/users/flxalexo/gists{/gist_id}","starred_url":"https://api.github.com/users/flxalexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flxalexo/subscriptions","organizations_url":"https://api.github.com/users/flxalexo/orgs","repos_url":"https://api.github.com/users/flxalexo/repos","events_url":"https://api.github.com/users/flxalexo/events{/privacy}","received_events_url":"https://api.github.com/users/flxalexo/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T17:32:50Z","updated_at":"2015-05-03T17:32:50Z","body":"Yes, this is a 32-bit JVM, are 32-bit JVMs not supported at the moment?\n\nOn Fri, May 1, 2015 at 5:48 PM, Martin Thompson <notifications@github.com>\nwrote:\n\n> Out of curiosity is this a 32-bit JVM?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/real-logic/Aeron/issues/109#issuecomment-98248004>.\n>\n"}}