Replace Device_uses_{dl,je}malloc with Malloc_not_svelte

This no longer switches between dlmalloc and jemalloc, it just changes
the jemalloc cflags for non-svelte devices.

Change-Id: Ic6975de89a53a42e4735dbdcde68367ebfc42f9b
diff --git a/common/variable.go b/common/variable.go
index e9f5915..04856e1 100644
--- a/common/variable.go
+++ b/common/variable.go
@@ -29,16 +29,6 @@
 
 type variableProperties struct {
 	Product_variables struct {
-		Device_uses_dlmalloc struct {
-			Cflags []string
-			Srcs   []string
-		}
-		Device_uses_jemalloc struct {
-			Cflags            []string
-			Srcs              []string
-			Whole_static_libs []string
-			Include_dirs      []string
-		}
 		Platform_sdk_version struct {
 			Asflags []string
 		}
@@ -52,15 +42,17 @@
 		Brillo struct {
 			Version_script *string `android:"arch_variant"`
 		} `android:"arch_variant"`
+
+		Malloc_not_svelte struct {
+			Cflags []string
+		}
 	} `android:"arch_variant"`
 }
 
 var zeroProductVariables variableProperties
 
 type productVariables struct {
-	Device_uses_jemalloc *bool `json:",omitempty"`
-	Device_uses_dlmalloc *bool `json:",omitempty"`
-	Platform_sdk_version *int  `json:",omitempty"`
+	Platform_sdk_version *int `json:",omitempty"`
 
 	DeviceName        *string   `json:",omitempty"`
 	DeviceArch        *string   `json:",omitempty"`
@@ -81,8 +73,9 @@
 	CrossHostArch          *string `json:",omitempty"`
 	CrossHostSecondaryArch *string `json:",omitempty"`
 
-	Unbundled_build *bool `json:",omitempty"`
-	Brillo          *bool `json:",omitempty"`
+	Unbundled_build   *bool `json:",omitempty"`
+	Brillo            *bool `json:",omitempty"`
+	Malloc_not_svelte *bool `json:",omitempty"`
 }
 
 func boolPtr(v bool) *bool {
@@ -99,7 +92,6 @@
 
 func (v *productVariables) SetDefaultConfig() {
 	*v = productVariables{
-		Device_uses_dlmalloc:       boolPtr(true),
 		Platform_sdk_version:       intPtr(22),
 		HostArch:                   stringPtr("x86_64"),
 		HostSecondaryArch:          stringPtr("x86"),
@@ -112,6 +104,7 @@
 		DeviceSecondaryArchVariant: stringPtr("armv7-a-neon"),
 		DeviceSecondaryCpuVariant:  stringPtr("denver"),
 		DeviceSecondaryAbi:         &[]string{"armeabi-v7a"},
+		Malloc_not_svelte:          boolPtr(false),
 	}
 
 	if runtime.GOOS == "linux" {