Skip to content

Commit

Permalink
added mmap support unwillingly - but there's just too much stuff rely…
Browse files Browse the repository at this point in the history
…ing on this (in particular the object reference decreasing when buffer released). The memory allocator for the transaction data is a naive one but fast, will need to come back to it later. By doing so, the parcel exception issue is resovled - no more transaction data corruption caused by reusing receiving buffer in IPCThreadState. Originally the issue happened like this,

Send StrictMode violation message to ActivityManager and get Reply#1

Before Reply#1 was read and processed

Somewhere in the code, called enforceInterface which sent out a enforceInterface message to the ActivityManager,

the second message back with Reply#2

and therefore the transaction data in it overwrote the one in Reply#1
  • Loading branch information
rong1129 committed Feb 15, 2012
1 parent 7acfdda commit acd0c30
Show file tree
Hide file tree
Showing 2 changed files with 243 additions and 52 deletions.
Loading

0 comments on commit acd0c30

Please sign in to comment.