@@ -112,6 +112,8 @@ static int ParseLocale(JNIEnv* env, int cat, char ** std_language, char ** std_s
112
112
}
113
113
114
114
temp = malloc (strlen (lc ) + 1 );
115
+ printf (" !j9x 0x%p,0x%zX %s\n" , temp , strlen (lc ) + 1 , "java_props_md.c:115" );
116
+
115
117
if (temp == NULL ) {
116
118
#ifdef MACOSX
117
119
free (lc ); // malloced memory
@@ -143,6 +145,7 @@ static int ParseLocale(JNIEnv* env, int cat, char ** std_language, char ** std_s
143
145
}
144
146
145
147
temp = malloc (strlen (lc ) + 1 );
148
+ printf (" !j9x 0x%p,0x%zX %s\n" , temp , strlen (lc ) + 1 , "java_props_md.c:148" );
146
149
if (temp == NULL ) {
147
150
JNU_ThrowOutOfMemoryError (env , NULL );
148
151
return 0 ;
@@ -175,6 +178,8 @@ static int ParseLocale(JNIEnv* env, int cat, char ** std_language, char ** std_s
175
178
*/
176
179
177
180
encoding_variant = malloc (strlen (temp )+ 1 );
181
+ printf (" !j9x 0x%p,0x%zX %s\n" , encoding_variant , strlen (temp )+ 1 , "java_props_md.c:181" );
182
+
178
183
if (encoding_variant == NULL ) {
179
184
free (temp );
180
185
JNU_ThrowOutOfMemoryError (env , NULL );
@@ -238,6 +243,8 @@ static int ParseLocale(JNIEnv* env, int cat, char ** std_language, char ** std_s
238
243
* std_language = "en" ;
239
244
if (language != NULL && mapLookup (language_names , language , std_language ) == 0 ) {
240
245
* std_language = malloc (strlen (language )+ 1 );
246
+ printf (" !j9x 0x%p,0x%zX %s\n" , * std_language , strlen (language )+ 1 , "java_props_md.c:246" );
247
+
241
248
strcpy (* std_language , language );
242
249
}
243
250
}
@@ -246,6 +253,8 @@ static int ParseLocale(JNIEnv* env, int cat, char ** std_language, char ** std_s
246
253
if (std_country != NULL && country != NULL ) {
247
254
if (mapLookup (country_names , country , std_country ) == 0 ) {
248
255
* std_country = malloc (strlen (country )+ 1 );
256
+ printf (" !j9x 0x%p,0x%zX %s\n" , * std_country , strlen (country )+ 1 , "java_props_md.c:256" );
257
+
249
258
strcpy (* std_country , country );
250
259
}
251
260
}
@@ -405,6 +414,9 @@ GetJavaProperties(JNIEnv *env)
405
414
{
406
415
char * os_version = malloc (strlen (name .version ) +
407
416
strlen (name .release ) + 2 );
417
+
418
+ printf (" !j9x 0x%p,0x%zX %s\n" , os_version , strlen (name .version ) + strlen (name .release ) + 2 , "java_props_md.c:418" );
419
+
408
420
if (os_version != NULL ) {
409
421
strcpy (os_version , name .version );
410
422
strcat (os_version , "." );
0 commit comments