summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* include/ruby/win32.h: define HAVE_X for the missing prototypes (#5456)Yuta Saito2022-01-181-1/+7
|
* Suppress possible loss of data warningsNobuyoshi Nakada2022-01-141-2/+3
|
* [DOC] Fix a typo in a docNobuyoshi Nakada2022-01-131-1/+1
|
* Enable Variable Width Allocation by defaultPeter Zhu2022-01-121-1/+1
|
* Make embedded string length a long for VWAPeter Zhu2022-01-121-1/+1
| | | | | A short (2 bytes) will cause unaligned struct accesses when strings are used as a buffer to directly store binary data.
* Revert "Enable Variable Width Allocation by default"Peter Zhu2022-01-081-1/+1
| | | | This reverts commit c365c5921ea26e31c03a85b01ff4c04629abfc10.
* Use unsigned short for length of embedded stringsPeter Zhu2022-01-071-1/+1
|
* Enable Variable Width Allocation by defaultPeter Zhu2022-01-071-1/+1
|
* Revert "Enable Variable Width Allocation by default"Peter Zhu2022-01-061-1/+1
| | | | This reverts commit d4a95428bb244ca8c4a97ad50f3837f191f1f0c3.
* Enable Variable Width Allocation by defaultPeter Zhu2022-01-061-1/+1
|
* Flush deprecation declarations for versions older than 3.0Nobuyoshi Nakada2021-12-301-50/+1
|
* Remove declarations of deprecated functionsNobuyoshi Nakada2021-12-301-12/+0
|
* Fix some bornheadsU.Nakamura2021-12-271-12/+1
|
* Call FlushInstrucitonCache() when PROT_EXEC is specified to mprotectU.Nakamura2021-12-271-2/+13
|
* Tiny mmap emulation for WindowsU.Nakamura2021-12-271-0/+19
| | | | | | | - prerequisite of supporting YJIT with VC++. - note that now can specfily `--yjit` on mswin64, but not enabled YJIT'ed code because of YJIT requires `OPT_DIRECT_THREADED_CODE` or `OPT_CALL_THREADED_CODE` in `rb_yjit_compile_iseq`.
* Remove deprecate rb_cData [Bug #18433]Nobuyoshi Nakada2021-12-261-24/+0
| | | | Also enable the warning for T_DATA allocator.
* Remove tainted and trusted featuresNobuyoshi Nakada2021-12-265-149/+0
| | | | Already these had been announced to be removed in 3.2.
* Development of 3.1.0 started.Yukihiro "Matz" Matsumoto2021-12-261-1/+1
|
* Fix typos [ci skip]Kazuhiro NISHIYAMA2021-12-251-1/+1
|
* Improvements to `rb_io_wait` return value handling and internal ↵Samuel Williams2021-12-241-1/+1
| | | | implementation. (#5340)
* Add fiber scheduler hooks for `pread`/`pwrite`, and add support to `IO::Buffer`.Samuel Williams2021-12-232-0/+32
|
* Extended interface for IO::Buffer & documentation.Samuel Williams2021-12-221-4/+4
|
* Rename IMMUTABLE to READONLY.Samuel Williams2021-12-211-3/+5
|
* Improve interface for get/set/copy.Samuel Williams2021-12-211-1/+0
|
* Mark non-private mapped files as external.Samuel Williams2021-12-211-6/+10
|
* Improved exception usage/classes.Samuel Williams2021-12-211-0/+2
|
* Improve IO::Buffer resize and introduce ownership transfer.Samuel Williams2021-12-201-1/+2
|
* Default size for IO::Buffer.Samuel Williams2021-12-191-0/+1
|
* Introduce io_result wrapper for passing `[-errno, size]` in VALUE.Samuel Williams2021-12-181-2/+52
|
* intern/select/posix.h: remove unused parameter from rb_fd_dupYuta Saito2021-12-111-2/+1
| | | | This unused parameter seems to be accidently introduced by https://github.com/ruby/ruby/commit/9e6e39c
* Revert zero-check for allocaNobuyoshi Nakada2021-12-101-3/+3
| | | | | Something weird results in int-in-bool-context and stringop-overflow warnings.
* Fix stack buffer overflowNobuyoshi Nakada2021-12-101-3/+3
| | | | https://hackerone.com/reports/1306859
* Add Class#subclassesJean Boussier2021-11-231-1/+14
| | | | | | | Implements [Feature #18273] Returns an array containing the receiver's direct subclasses without singleton classes.
* revival of must_not_null()卜部昌平2021-11-111-8/+6
| | | | | | | | Presence of RBIMPL_ATTR_NONNULL let C compilers to eliminate must_not_null(). Because null pointers are not allowed to exist there are no reason to call the function. In reality null pointers are still passed to those functions in a number of ways. Runtime check for them are definitely nice to have. fix [Feature#18280]
* rb_file_size: add doxygen卜部昌平2021-11-111-0/+17
| | | | Must not be a bad idea to improve documents. [ci skip]
* rb_enc_code_to_mbclen: fix doxygen卜部昌平2021-11-111-4/+4
| | | | Wrong parameter name. [ci skip]
* RB_ENCODING_SET_INLINED: fix doxygen卜部昌平2021-11-111-3/+3
| | | | Wrong parameter name. [ci skip]
* ENCODING_MASK: fix doxygen link [ci skip]卜部昌平2021-11-111-1/+1
|
* io/buffer.h: C linkage卜部昌平2021-11-111-2/+2
| | | | | Because `make install` installs this header to target systems, it must be ready to be `#include`d form a C++ program.
* size_t is not for file sizeNobuyoshi Nakada2021-11-102-2/+6
|
* Mark IO::Buffer as experimental.Samuel Williams2021-11-101-0/+3
|
* IO::Buffer for scheduler interface.Samuel Williams2021-11-104-4/+118
|
* [Feature #18290] Deprecate rb_gc_force_recycle and remove ↵Peter Zhu2021-11-081-0/+2
| | | | | | | | invalidate_mark_stack_chunk This commit deprecates rb_gc_force_recycle and coverts it to a no-op function. Also removes invalidate_mark_stack_chunk since only rb_gc_force_recycle uses it.
* memory_view.c: Add _memory_view_entry member in rb_memory_view_t (#5088)Kenta Murata2021-11-081-4/+8
|
* Fix typosNobuyoshi Nakada2021-11-026-9/+9
|
* Add Class#descendantsJeremy Evans2021-10-261-0/+13
| | | | | | | | Doesn't include receiver or singleton classes. Implements [Feature #14394] Co-authored-by: fatkodima <fatkodima123@gmail.com> Co-authored-by: Benoit Daloze <eregontp@gmail.com>
* improve doc coverage [ci skip]卜部昌平2021-10-261-7/+9
| | | | Just split the comment for struct's one and array's one.
* just another evidence that @shyouhei is an idiot [ci skip]卜部昌平2021-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gdb) ptype/o struct RString /* offset | size */ type = struct RString { /* 0 | 16 */ struct RBasic { /* 0 | 8 */ VALUE flags; /* 8 | 8 */ const VALUE klass; /* total size (bytes): 16 */ } basic; /* 16 | 24 */ union { /* 24 */ struct { /* 16 | 8 */ long len; /* 24 | 8 */ char *ptr; /* 32 | 8 */ union { /* 8 */ long capa; /* 8 */ VALUE shared; /* total size (bytes): 8 */ } aux; /* total size (bytes): 24 */ } heap; /* 24 */ struct { /* 16 | 24 */ char ary[24]; /* total size (bytes): 24 */ } embed; /* XXX 8-byte padding */ /* total size (bytes): 24 */ } as; /* total size (bytes): 40 */ } (gdb)
* [Feature #18239] Implement VWA for stringsPeter Zhu2021-10-252-0/+24
| | | | | This commit adds support for embedded strings with variable capacity and uses Variable Width Allocation to allocate strings.
* [Feature #18239] Add struct for embedded stringsPeter Zhu2021-10-251-10/+11
|