[ 
https://issues.apache.org/jira/browse/CASSANDRA-8325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14219184#comment-14219184
 ] 

Leonid Shalupov commented on CASSANDRA-8325:
--------------------------------------------

{code}
public class A {                                                  
  public static void main(String[] args) throws Exception {       
    java.lang.reflect.Field f = 
sun.misc.Unsafe.class.getDeclaredField("theUnsafe");
    f.setAccessible(true);                                        
    sun.misc.Unsafe unsafe = (sun.misc.Unsafe) f.get(null);       
                                                                  
    long l = unsafe.allocateMemory(900L*1024*1024);               
    System.err.println(l);                                        
  }                                                               
}                                                                 
{code}

$ javac A.java
$ java A
36679188480

> Cassandra 2.1.x fails to start on FreeBSD (JVM crash)
> -----------------------------------------------------
>
>                 Key: CASSANDRA-8325
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8325
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: FreeBSD 10.0 with openjdk version "1.7.0_71", 64-Bit 
> Server VM
>            Reporter: Leonid Shalupov
>         Attachments: hs_err_pid1856.log, system.log
>
>
> See attached error file after JVM crash
> {quote}
> FreeBSD xxx.intellij.net 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu 
> Jan 16 22:34:59 UTC 2014     
> r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
> {quote}
> {quote}
>  % java -version
> openjdk version "1.7.0_71"
> OpenJDK Runtime Environment (build 1.7.0_71-b14)
> OpenJDK 64-Bit Server VM (build 24.71-b01, mixed mode)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to