Home > Back-end >  JAVA and GROOVY script generated script does not gc collection
JAVA and GROOVY script generated script does not gc collection

Time:12-05

Code using the Groovy expressions operations, mainly used to calculate similar to two Numbers than the size of the operation is similar to the 4 & gt; 1 the test code as follows

 


The Random Random=new Random ();

for(int i=0; i<100; I++) {
String a=String. The valueOf (random. NextInt ());
String b=String. The valueOf (random. NextInt ());
String message=a + & gt; "" A + b;
System. The out. Println (message);
System. Out. Println (" the first: "+ I +" time execution result="+ AutoAuditRuleScript parseExpr (the message));
}



Circulation found



GC after yuan space remains the automatically generated groovy Script Script
  • Related