Loading core/java/android/os/Parcel.java +1 −7 Original line number Diff line number Diff line Loading @@ -430,13 +430,7 @@ public final class Parcel { * @param size The new number of bytes in the Parcel. */ public final void setDataSize(int size) { // STOPSHIP: Try/catch for exception is for temporary debug. Remove once bug resolved try { updateNativeSize(nativeSetDataSize(mNativePtr, size)); } catch (IllegalArgumentException iae) { Log.e(TAG,"Caught Exception representing a known bug in Parcel",iae); Log.wtfStack(TAG, "This flow is using SetDataSize incorrectly"); } } /** Loading core/jni/android_os_Parcel.cpp +1 −5 Original line number Diff line number Diff line Loading @@ -119,11 +119,7 @@ static jlong android_os_Parcel_setDataSize(JNIEnv* env, jclass clazz, jlong nati Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); if (parcel != NULL) { const status_t err = parcel->setDataSize(size); //STOPSHIP: check for BADFLO is for a temporary debug using wtf. Remove once bug resolved. if (err == UNKNOWN_ERROR + 0xBADF10) { jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException", "Attempt to resize (size = %d) Parcel would corrupt object memory", size); } else if (err != NO_ERROR) { if (err != NO_ERROR) { signalExceptionForError(env, clazz, err); } return parcel->getOpenAshmemSize(); Loading Loading
core/java/android/os/Parcel.java +1 −7 Original line number Diff line number Diff line Loading @@ -430,13 +430,7 @@ public final class Parcel { * @param size The new number of bytes in the Parcel. */ public final void setDataSize(int size) { // STOPSHIP: Try/catch for exception is for temporary debug. Remove once bug resolved try { updateNativeSize(nativeSetDataSize(mNativePtr, size)); } catch (IllegalArgumentException iae) { Log.e(TAG,"Caught Exception representing a known bug in Parcel",iae); Log.wtfStack(TAG, "This flow is using SetDataSize incorrectly"); } } /** Loading
core/jni/android_os_Parcel.cpp +1 −5 Original line number Diff line number Diff line Loading @@ -119,11 +119,7 @@ static jlong android_os_Parcel_setDataSize(JNIEnv* env, jclass clazz, jlong nati Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); if (parcel != NULL) { const status_t err = parcel->setDataSize(size); //STOPSHIP: check for BADFLO is for a temporary debug using wtf. Remove once bug resolved. if (err == UNKNOWN_ERROR + 0xBADF10) { jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException", "Attempt to resize (size = %d) Parcel would corrupt object memory", size); } else if (err != NO_ERROR) { if (err != NO_ERROR) { signalExceptionForError(env, clazz, err); } return parcel->getOpenAshmemSize(); Loading