致命错误:EXCEPTION_ACCESS_VIOLATION

时间:2014-09-23 00:59:29

标签: java java-8

我有以下代码:

public class Tester {

public static void main(String[] args) throws Exception {       

    int c = 10000;
    String ar[][] = new String[100][c];
    for(int i = 0; i < c;i++){
        for(int j = 0; j < 100;j++)     
            ar[j][i] = i+"";    
    }

    for(;;){}
}
}

当我尝试运行它时,我收到此错误。奇怪的是,当我注释掉for(;;){}时,不会发生错误。

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000642949da, pid=6420, tid=2424
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0x4d49da]

0 个答案:

没有答案