update doc for jp
diff --git a/readme.md b/readme.md
index a9d22b3..5c89103 100644
--- a/readme.md
+++ b/readme.md
@@ -65,12 +65,13 @@
Default allocator calls posix_memalign on Linux, then mprotect recudes map count.
The max value is written in ```/proc/sys/vm/max_map_count```.
The max number of instances of ```Xbyak::CodeGenerator``` is limited to the value.
+See ```test/mprotect_test.cpp```.
Use MmapAllocator if you want to avoid the restriction(This behavior may be default in the feature).
* AutoGrow mode is a mode that Xbyak grows memory automatically if necessary.
Call ready() before calling getCode() to calc address of jmp.
-
+```
struct Code : Xbyak::CodeGenerator {
Code()
: Xbyak::CodeGenerator(<default memory size>, Xbyak::AutoGrow)
@@ -80,7 +81,7 @@
};
Code c;
c.ready(); // Don't forget to call this function
-
+```
>Don't use the address returned by getCurr() before calling ready().
>It may be invalid address.
>RESTRICTION : rip addressing is not supported in AutoGrow
diff --git a/readme.txt b/readme.txt
index d287034..fa518d2 100644
--- a/readme.txt
+++ b/readme.txt
@@ -46,6 +46,17 @@
-----------------------------------------------------------------------------
◎新機能
+MmapAllocator追加
+これはUnix系OSでのみの仕様です。XBYAK_USE_MMAP_ALLOCATORを使うと利用できます。
+デフォルトのAllocatorはメモリ確保時にposix_memalignを使います。
+この領域に対するmprotectはmap countを減らします。
+map countの最大値は/proc/sys/vm/max_map_countに書かれています。
+デフォルトでは3万個ほどのXbyak::CodeGeneratorインスタンスを生成するとエラーになります。
+test/mprotect_test.cppで確認できます。
+これを避けるためにはmmapを使うMmapAllocatorを使ってください。
+将来この挙動がデフォルトになるかもしれません。
+
+
AutoGrowモード追加
これはメモリ伸長を動的に行うモードです。
今まではXbyak::CodeGenerator()に渡したメモリサイズを超えると例外が発生して