Skip to content

Commit 18e7406

Browse files
committedAug 5, 2014
Dalvik is dead, long live Dalvik!
croot cd libcore repo start dalvik-is-dead-long-live-dalvik . repo sync -c . git rm -r libdvm git add JavaLibrary.mk (after removing libdvm references, adding explict core-libart references) git add Docs.mk (after replacing references to libdvm with libart) git add benchmarks/Android.mk (after adding explict core-libart references) git add Android.mk (after removing dalvik-host target) git commit -a -m 'Dalvik is dead, long live Dalvik!' Bug: 14298175 Change-Id: I977e7b4be8ef1043b70ceb8532ac4947ea1b7ab8
1 parent a551992 commit 18e7406

24 files changed

+6
-11115
lines changed
 

‎Android.mk

-22
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,4 @@ $(info * libcore tests are skipped because environment variable LIBCORE_SKIP_TES
5050
$(info ********************************************************************************)
5151
endif
5252

53-
54-
#
55-
# "m dalvik-host" for quick minimal host build
56-
#
57-
58-
.PHONY: dalvik-host
59-
dalvik-host: \
60-
dalvik \
61-
$(HOST_OUT)/bin/dalvikvm \
62-
$(HOST_OUT)/bin/dexopt \
63-
$(HOST_OUT)/lib/libjavacore.so \
64-
$(HOST_OUT)/lib/libjavacrypto.so \
65-
$(HOST_OUT)/lib/libjavacoretests.so \
66-
cacerts-host \
67-
core-hostdex \
68-
conscrypt-hostdex \
69-
okhttp-hostdex \
70-
bouncycastle-hostdex \
71-
apache-xml-hostdex \
72-
apache-harmony-tests-hostdex \
73-
$(call intermediates-dir-for,JAVA_LIBRARIES,core-tests,,COMMON)/classes.jar
74-
7553
include $(subdir_makefiles)

‎Docs.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ libcore_to_document := \
1717
dalvik/src/main/java/dalvik/annotation \
1818
dalvik/src/main/java/dalvik/bytecode \
1919
json/src/main/java \
20-
libdvm/src/main/java/dalvik \
21-
libdvm/src/main/java/java \
20+
libart/src/main/java/dalvik \
21+
libart/src/main/java/java \
2222
luni/src/main/java/android \
2323
luni/src/main/java/java \
2424
luni/src/main/java/javax \

‎JavaLibrary.mk

+3-28
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ ifneq ($(EMMA_INSTRUMENT_STATIC),true)
6262
endif
6363
endif
6464

65-
libdvm_core_src_files += $(common_core_src_files) $(call all-main-java-files-under,libdvm)
6665
libart_core_src_files += $(common_core_src_files) $(call all-main-java-files-under,libart)
6766

6867
local_javac_flags=-encoding UTF-8
@@ -75,18 +74,6 @@ local_javac_flags+=-Xmaxwarns 9999999
7574

7675
# Definitions to make the core library.
7776

78-
include $(CLEAR_VARS)
79-
LOCAL_SRC_FILES := $(libdvm_core_src_files)
80-
LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
81-
LOCAL_NO_STANDARD_LIBRARIES := true
82-
LOCAL_JAVACFLAGS := $(local_javac_flags)
83-
LOCAL_DX_FLAGS := --core-library
84-
LOCAL_MODULE_TAGS := optional
85-
LOCAL_MODULE := core
86-
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
87-
LOCAL_REQUIRED_MODULES := tzdata
88-
include $(BUILD_JAVA_LIBRARY)
89-
9077
include $(CLEAR_VARS)
9178
LOCAL_SRC_FILES := $(libart_core_src_files)
9279
LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
@@ -108,7 +95,7 @@ include $(CLEAR_VARS)
10895
LOCAL_SRC_FILES := $(test_src_files)
10996
LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
11097
LOCAL_NO_STANDARD_LIBRARIES := true
111-
LOCAL_JAVA_LIBRARIES := bouncycastle core core-junit okhttp
98+
LOCAL_JAVA_LIBRARIES := bouncycastle core-libart core-junit okhttp
11299
LOCAL_STATIC_JAVA_LIBRARIES := core-tests-support sqlite-jdbc mockwebserver nist-pkix-tests
113100
LOCAL_JAVACFLAGS := $(local_javac_flags)
114101
LOCAL_MODULE := core-tests
@@ -122,7 +109,7 @@ include $(CLEAR_VARS)
122109
LOCAL_SRC_FILES := $(call all-test-java-files-under,support)
123110
LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
124111
LOCAL_NO_STANDARD_LIBRARIES := true
125-
LOCAL_JAVA_LIBRARIES := bouncycastle core core-junit
112+
LOCAL_JAVA_LIBRARIES := bouncycastle core-libart core-junit
126113
LOCAL_JAVACFLAGS := $(local_javac_flags)
127114
LOCAL_MODULE := core-tests-support
128115
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
@@ -135,7 +122,7 @@ include $(CLEAR_VARS)
135122
LOCAL_SRC_FILES := $(call all-test-java-files-under, jsr166-tests)
136123
LOCAL_JAVA_RESOURCE_DIRS := $(test_resource_dirs)
137124
LOCAL_NO_STANDARD_LIBRARIES := true
138-
LOCAL_JAVA_LIBRARIES := core core-junit
125+
LOCAL_JAVA_LIBRARIES := core-libart core-junit
139126
LOCAL_JAVACFLAGS := $(local_javac_flags)
140127
LOCAL_MODULE := jsr166-tests
141128
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
@@ -168,18 +155,6 @@ LOCAL_MODULE := dex-host
168155
include $(BUILD_HOST_JAVA_LIBRARY)
169156

170157
# Definitions to make the core library.
171-
include $(CLEAR_VARS)
172-
LOCAL_SRC_FILES := $(libdvm_core_src_files)
173-
LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
174-
LOCAL_NO_STANDARD_LIBRARIES := true
175-
LOCAL_JAVACFLAGS := $(local_javac_flags)
176-
LOCAL_DX_FLAGS := --core-library
177-
LOCAL_MODULE_TAGS := optional
178-
LOCAL_MODULE := core-hostdex
179-
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/JavaLibrary.mk
180-
LOCAL_REQUIRED_MODULES := tzdata-host
181-
include $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
182-
183158
include $(CLEAR_VARS)
184159
LOCAL_SRC_FILES := $(libart_core_src_files)
185160
LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)

‎benchmarks/Android.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
1515
LOCAL_JAVA_LIBRARIES := \
1616
bouncycastle \
1717
conscrypt \
18-
core
18+
core-libart
1919

2020
LOCAL_MODULE_TAGS := tests
2121

‎libdvm/src/main/java/dalvik/system/VMRuntime.java

-381
This file was deleted.

‎libdvm/src/main/java/dalvik/system/VMStack.java

-100
This file was deleted.

‎libdvm/src/main/java/java/lang/Class.java

-1,354
This file was deleted.

‎libdvm/src/main/java/java/lang/ClassLoader.java

-836
This file was deleted.

‎libdvm/src/main/java/java/lang/Daemons.java

-281
This file was deleted.

‎libdvm/src/main/java/java/lang/Enum.java

-221
This file was deleted.

‎libdvm/src/main/java/java/lang/Object.java

-443
This file was deleted.

‎libdvm/src/main/java/java/lang/String.java

-2,075
This file was deleted.

‎libdvm/src/main/java/java/lang/Thread.java

-1,288
This file was deleted.

‎libdvm/src/main/java/java/lang/ThreadGroup.java

-726
This file was deleted.

‎libdvm/src/main/java/java/lang/VMClassLoader.java

-85
This file was deleted.

‎libdvm/src/main/java/java/lang/VMThread.java

-77
This file was deleted.

‎libdvm/src/main/java/java/lang/ref/Reference.java

-200
This file was deleted.

‎libdvm/src/main/java/java/lang/reflect/AccessibleObject.java

-320
This file was deleted.

‎libdvm/src/main/java/java/lang/reflect/Constructor.java

-466
This file was deleted.

‎libdvm/src/main/java/java/lang/reflect/Field.java

-931
This file was deleted.

‎libdvm/src/main/java/java/lang/reflect/Method.java

-587
This file was deleted.

‎libdvm/src/main/java/java/lang/reflect/Proxy.java

-278
This file was deleted.

‎libdvm/src/main/java/org/apache/harmony/kernel/vm/StringUtils.java

-63
This file was deleted.

‎libdvm/src/main/java/sun/misc/Unsafe.java

-350
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.