This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rupN original/hsdis.c hsdis.c | |
--- original/hsdis.c 2010-11-12 11:39:59.617873967 +0800 | |
+++ hsdis.c 2010-11-12 11:42:00.566353179 +0800 | |
@@ -29,7 +29,11 @@ | |
#include "hsdis.h" | |
-#include <sysdep.h> | |
+#if 0 | |
+ #include <sysdep.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build/components/harmony.xml b/build/components/harmony.xml | |
index 7ba9405..2e0ed25 100755 | |
--- a/build/components/harmony.xml | |
+++ b/build/components/harmony.xml | |
@@ -18,6 +18,7 @@ | |
<property name="harmony.version" value="5.0M10"/> | |
<property name="harmony.description" value="Apache Harmony class libraries"/> | |
<property name="harmony.svn.revision" value="782693"/> | |
+ <property name="harmony.base.url" value="http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib"/> | |
<property name="harmony.patchlevel" value="0"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tools/bootloader/sysSignal_Intel.c b/tools/bootloader/sysSignal_Intel.c | |
index c283e96..d7d04fa 100755 | |
--- a/tools/bootloader/sysSignal_Intel.c | |
+++ b/tools/bootloader/sysSignal_Intel.c | |
@@ -14,6 +14,14 @@ | |
*/ | |
/* | |
+ * Define the _GNU_SOURCE macro before first include header, | |
+ * instead of defining glibc's internal macro __USE_GNU. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static org.apache.commons.lang.StringEscapeUtils.escapeJava; | |
import static org.apache.commons.lang.StringUtils.isEmpty; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.apache.velocity.runtime.parser.node.ASTAddNode; | |
import org.apache.velocity.runtime.parser.node.ASTAndNode; | |
import org.apache.velocity.runtime.parser.node.ASTAssignment; | |
import org.apache.velocity.runtime.parser.node.ASTBlock; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.OutputStreamWriter; | |
import java.io.Writer; | |
import java.util.Arrays; | |
import org.apache.velocity.VelocityContext; | |
import org.apache.velocity.app.Velocity; | |
import org.apache.velocity.context.Context; | |
/** | |
* Demonstrate interaction between a template and its context. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
ASM_PATH = "asm-all-3.3.jar" | |
SEP = File::PATH_SEPARATOR | |
jar_file, additional_classpath = ARGV | |
raise "usage: check_jar <jar_file> <additional_classpath>" unless jar_file | |
`jar tf #{jar_file}`.lines.grep(/\.class$/i). | |
map {|s| s.chomp[0..-7].gsub '/', '.'}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java source code: | |
k = i + j; | |
May compile to Java bytecode: | |
iload_0 | |
iload_1 | |
iadd | |
istore_2 | |
And may turn into Dalvik VM code: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isPlainObject(o) { | |
return o && toString.call(o) === '[object Object]' && 'isPrototypeOf' in o; | |
} | |
function isArray(o) { | |
return toString.call(o) == '[object Array]'; | |
} | |
function objectToString(val) { | |
var INDENT = ' '; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// java -XX:+UnlockDiagnosticVMOptions -XX:CompileCommand=compileonly,TestC2NullCheck.getValue -XX:-UseFastAccessorMethods -XX:+PrintAssembly TestC2NullCheck | |
public class TestC2NullCheck { | |
public static int getValue(Foo foo) { | |
return foo.value; | |
} | |
public static void main(String[] args) throws Exception { | |
for (int i = 0; i < 120000; i++) { | |
getValue(new Foo()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Xmx1024m -Xms1024m -Xmn512m -Xss512k -XX:PermSize=256m -XX:+UseParallelGC -XX:ParallelGCThreads=20 -XX:+UseParallelOldGC -XX:MaxGCPauseMillis=100 -XX:+UseAdaptiveSizePolicy -XX:+DisableExplicitGC -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps |
OlderNewer