精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>电脑技术>>● FreeBSD>>开发相关>>开发语言>>Java>>OpenJIT1.1.16有bug,

主题:OpenJIT1.1.16有bug,
发信人: huanghwh(五云人)
整理人: zhcharles(2002-01-30 15:31:00), 站内信件
OpenJIT 对数组不能GC, 可用以下patch fix it:

--Multipart_Tue_Dec__4_00:52:50_2001-1
Content-Type: text/plain; charset=US-ASCII

Hi,

On Sat, 24 Nov 2001 22:10:21 -0800 (PST), huang wen hui wrote:
> > when run under jdk1.3.1p5 that enable OpenJIT1.1.16,
> the program will eat a lot of memory as posible as it
> can. and error msg is :
> Exception in thread "main"
> java.lang.StackOverflowError
> at
> java.util.LinkedList.addBefore(LinkedList.java,
> Compiled Code)
> at
> java.util.LinkedList.addLast(LinkedList.java, Compiled
> Code)
> at FixQueue.addBack(FixQueue.java, Compiled
> Code)
> at FixQueue.main(FixQueue.java, Compiled Code)
> > > If disable OpenJIT, it worked as expected. 
> The bug has fixed.  In fact, it was very long living, hiding one.
Thank you, we really didn't know the bug, and it couldn't be fixed
without your reports.

Attached patch should fix your problem.

--
Fuyuhiko MARUYAMA <[email protected]>
Matsuoka laboratory,
Department of Mathematical and Computing Sciences,
Graduate School of Information Science and Engineering,
Tokyo Institute of Technology.


--Multipart_Tue_Dec__4_00:52:50_2001-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="rt-X86.c.diff"
Content-Transfer-Encoding: 7bit

--- rt-X86.c.orig Fri Sep  7 05:34:36 2001
+++ rt-X86.c Tue Dec  4 00:41:56 2001
@@ -1974,7 +1974,7 @@
     ASM("leave; jmp OpenJIT_invokeinterface_quick");
 }
 
-static JHandle *
+static JHandle * ATTRIBUTE((stdcall))
 OpenJIT_newarray(int type, int size)
 {
     JHandle *ret;

--Multipart_Tue_Dec__4_00:52:50_2001-1--


[关闭][返回]