[#86787] [Ruby trunk Feature#14723] [WIP] sleepy GC — ko1@...

Issue #14723 has been updated by ko1 (Koichi Sasada).

13 messages 2018/05/01
[#86790] Re: [Ruby trunk Feature#14723] [WIP] sleepy GC — Eric Wong <normalperson@...> 2018/05/01

ko1@atdot.net wrote:

[#87095] [Ruby trunk Feature#14767] [PATCH] gc.c: use monotonic counters for objspace_malloc_increase — ko1@...

Issue #14767 has been updated by ko1 (Koichi Sasada).

9 messages 2018/05/17

[ruby-core:86981] [Ruby trunk Bug#14748][Closed] Inconsistent (and regressed from 2.4) behavior on `Array#min` and max between array literals and arrays

From: mame@...
Date: 2018-05-11 03:09:59 UTC
List: ruby-core #86981
Issue #14748 has been updated by mame (Yusuke Endoh).

Status changed from Open to Closed

This is already fixed in trunk at r61766.  Please wait for ruby 2.5.2.

(Note that #12172 is innocent because opt_newarray_min is included in 2.4 :-)


----------------------------------------
Bug #14748: Inconsistent (and regressed from 2.4) behavior on `Array#min` and max between array literals and arrays
https://bugs.ruby-lang.org/issues/14748#change-71946

* Author: nelhage (Nelson Elhage)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
`Array#min` and `Array#max` have different behavior depending on whether or not they are called with array literals:


~~~
$ ruby -e 'puts([1.0, 1].min); one_f = 1.0; one = 1; puts([one_f, one].min)'
1.0
1
~~~

This is a regression from 2.4, where both forms would return `1.0`.

I believe this to be a bug introduced by https://bugs.ruby-lang.org/issues/12172 -- disassembly reveals that only the second form uses `opt_newarray_min`



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next